package lab02.text04;

public class staff {
    //构造函数
    staff(){}
    //属性：员工姓名、员工号码、员工基本薪水、员工薪水增长额
    String name;
    int number;
    float salary;
    float salaryIncrease;
    float salarySum;
    //行为：构造方法、获取员工姓名、获取员工号码、获取员工基本薪水、计算薪水增长额及计算增长后的工资总额。
    String name(){
        return name;
    }
    int number(){
        return number;
    }
    float salary(){
        return salary;
    }
    float SalaryIncrease(){
        return salaryIncrease;
    }
    float salarySum() {
        salarySum = salary + salaryIncrease;
        return salarySum;
    }
}
